var i = 0;

silobox({
	
	title: "Is eval evil?",
	description: "Tests the performance of the eval keyword against running the code directly.",
	
	tests: [
		{
			title: "Counting numbers using eval (10 times)",
			description: "Increases a number by 1 ten times using the eval keyword.",
			code: function() {
				
				i = 0;
				
				eval("i++");
				eval("i++");
				eval("i++");
				eval("i++");
				eval("i++");
				eval("i++");
				eval("i++");
				eval("i++");
				eval("i++");
				eval("i++");
				
			}
		},
		{
			title: "Counting numbers using eval (8 times)",
			description: "Increases a number by 1 eight times using the eval keyword.",
			code: function() {
				
				i = 0;
				
				eval("i++");
				eval("i++");
				eval("i++");
				eval("i++");
				eval("i++");
				eval("i++");
				eval("i++");
				eval("i++");
				
			}
		},
		{
			title: "Counting numbers using eval (6 times)",
			description: "Increases a number by 1 six times using the eval keyword.",
			code: function() {
				
				i = 0;
				
				eval("i++");
				eval("i++");
				eval("i++");
				eval("i++");
				eval("i++");
				eval("i++");
				
			}
		},
		{
			title: "Counting numbers using eval (4 times)",
			description: "Increases a number by 1 four times using the eval keyword.",
			code: function() {
				
				i = 0;
				
				eval("i++");
				eval("i++");
				eval("i++");
				eval("i++");
				
			}
		},
		{
			title: "Counting numbers using eval (2 times)",
			description: "Increases a number by 1 twice using the eval keyword.",
			code: function() {
				
				i = 0;
				
				eval("i++");
				eval("i++");
				
			}
		},
		
		{
			title: "Counting numbers WITHOUT using eval (10 times)",
			description: "Increases a number by 1 ten times using normal inline JavaScript.",
			code: function() {
				
				i = 0;
				
				i++;
				i++;
				i++;
				i++;
				i++;
				i++;
				i++;
				i++;
				i++;
				i++;
				 
			}
		},
		{
			title: "Counting numbers WITHOUT using eval (8 times)",
			description: "Increases a number by 1 eight times using normal inline JavaScript.",
			code: function() {
				
				i = 0;
				
				i++;
				i++;
				i++;
				i++;
				i++;
				i++;
				i++;
				i++;
				 
			}
		},
		{
			title: "Counting numbers WITHOUT using eval (6 times)",
			description: "Increases a number by 1 six times using normal inline JavaScript.",
			code: function() {
				
				i = 0;
				
				i++;
				i++;
				i++;
				i++;
				i++;
				i++;
				 
			}
		},
		{
			title: "Counting numbers WITHOUT using eval (4 times)",
			description: "Increases a number by 1 four times using normal inline JavaScript.",
			code: function() {
				
				i = 0;
				
				i++;
				i++;
				i++;
				i++;
				 
			}
		},
		{
			title: "Counting numbers WITHOUT using eval (2 times)",
			description: "Increases a number by 1 twice using normal inline JavaScript.",
			code: function() {
				
				i = 0;
				
				i++;
				i++;
				 
			}
		}
	]
	
});